FROM orchardup/python:2.7

ADD . /app
WORKDIR /app

RUN curl https://bootstrap.pypa.io/get-pip.py | python
RUN pip install -U pip
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install --trusted-host pypi.alauda.io \
                --extra-index-url http://mathildetech:Mathilde1861@pypi.alauda.io/simple/ \
                -r requirements-alauda.txt \
                && rm -rf /root/.cache/pip/\

RUN chmod +x /app/*.sh
RUN mkdir /var/log/mathilde && chmod +w /var/log/mathilde

CMD ["loop.sh"]



